package com.example.custom.web.controller;


import com.example.custom.web.service.IDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @descriptions:
 * @author: otitan-jianghongkai
 * @date: 2023/12/29 15:36
 * @version: 1.0
 */
@RestController
@RequestMapping("v3")
public class DataController {
    @Autowired
    private IDataService idataService;

    @PostMapping("/queryData")
    public ResponseEntity<String> queryData(@RequestBody Map<String, String> requestParams) {
        return idataService.callTargetApi(requestParams.get("password"), requestParams.get("user"));
    }

}
